﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/manager/manager.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="manager_blog_Default" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2>Recent Blog Posts</h2>
<asp:Button runat="server" ID="btnNewPost" Text="+ New Post" OnClick="btnNewPost_Click" />
<asp:Repeater runat="server" ID="rptBlogPosts" DataMember="ID">
<ItemTemplate>
    <div class="blogpost">
        <div class="blogpostheading"><a href="../pages/build.aspx?for=blog&id=<%#Eval("ID")%>"><%#Eval("Title") %></a> on <%#string.Format("{0:dddd, dd MMM yyy @ h:mmtt}", TanashCMS.Business.Task.TimeZoneTask.ToLocal(Website.DifferenceFromGMT, (DateTime)Eval("DateCreated")))%> <a href="../pages/build.aspx?for=blog&id=<%#Eval("ID")%>">Edit</a></div>
    </div>
</ItemTemplate>
</asp:Repeater>
</asp:Content>

